wayland: Fix thinko in wl_data_source.cancelled handler
authorCarlos Garnacho <carlosg@gnome.org>
Tue, 17 Mar 2015 16:59:15 +0000 (17:59 +0100)
committerCarlos Garnacho <carlosg@gnome.org>
Wed, 18 Mar 2015 10:21:40 +0000 (11:21 +0100)
commitdcfa55ac7e119f8ae8e5670291fdd20968fc5a58
tree6bd90e67f9fe1cca5e3f43b010f7d913e5938ddd
parent28063ee2e42e7ce47b7bd5326f2d53875a377d57
wayland: Fix thinko in wl_data_source.cancelled handler

The wl_data_source may be the clipboard's. Looking up the drag context in
order to get the display isn't going to fare well there. So, just use the
default display, and only look up the drag context when we know we need it.

https://bugzilla.gnome.org/show_bug.cgi?id=746386
gdk/wayland/gdkselection-wayland.c